For the problem of optimizing resource allocation to achieve profit maximization of cloud computing center, an analysis model based on Service Layer Agreement (SLA)-aware was proposed for optimizing server number and speed of cloud center. Meanwhile some important factors were taken into account, such as energy cost, server rental cost, customer waiting time, and SLA violation penalty. The impacts of cloud center profit by changing server number and speed were analyzed by numerical simulation. The numerical simulation results indicate that cloud center will obtain maximum profit by optimizing server number and speed at a certain request rate; with request rate increasing, profit will increase linearly by optimizing server number and speed. The analysis results can provide a reference method for cloud service provider to improve net business gain.